angular.module('starter', ['ui.router','infinite-scroll', 'ngAnimate','ngCookies','starter.controllers','starter.services'])

    .constant('loading', true)

    .config(function ($stateProvider, $urlRouterProvider) {

        $urlRouterProvider.otherwise("/home");
        //
        // Now set up the states
        $stateProvider
            .state('home', {
                url: "/home",
                templateUrl: "partials/home.htm",
                controller: 'HomeCtrl'
            })
            .state('view', {
                url: "/view/:id",
                templateUrl: "partials/view.htm",
                controller: 'ViewCtrl'
            })
            .state('list', {
                url: "/list/:id",
                templateUrl: "partials/list.htm",
                controller: 'ListCtrl'
            })
            .state('search', {
                url: "/search",
                templateUrl: "partials/search.htm",
                controller: 'SearchCtrl'
            })
            .state('searchkwd', {
                url: "/search/:kwd",
                templateUrl: "partials/searchkwd.htm",
                controller: 'SearchKwdCtrl'
            })


    })

